<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class UserTransaction extends TimeModel
{

    protected $name = "user_transaction";

    protected $deleteTime = "delete_time";

    
    public function user()
    {
        return $this->belongsTo('\app\admin\model\User', 'user_id', 'id');
    }

    
    public function getChongtiList()
    {
        return ['1'=>'充值','2'=>'提币',];
    }

    public function getStatusList()
    {
        return ['1'=>'已驳回','2'=>'已通过','0'=>'未处理',];
    }


}